/** 
 * File-Name:ExceptionStackTraceDetectorAndExtractor.java
 *
 * Created on 2011-10-2 下午02:59:13
 * 
 * @author: Neo (neolimeng@gmail.com)
 * Software Engineering Institute, Peking University, China
 * 
 * Copyright (c) 2009, Peking University
 * 
 *
 */
package com.debugassistant.service.est;

import java.util.List;

import com.debugassistant.entity.EST;

/**
 * Description: Detect and extract exception stack trace from texts.
 * 
 * @author: Neo (neolimeng@gmail.com) Software Engineering Institute, Peking
 *          University, China
 * @version 1.0 2011-10-2 下午02:59:13
 */
public class ESTDetectorAndExtractor {

	/**
	 * 
	 * Description: Detect and extract exception stack traces from texts.
	 * 
	 * Important: There may be more than one exception stack traces in the
	 * source texts.
	 * 
	 * @param source
	 *            The source texts, e.g. web page, log.
	 * @return List<ExceptionStackTrace> The extracted exception stack traces.
	 */
	public List<EST> extract(String source) {
		try {
			List<EST> exceptionStackTraces = null;

			// TODO Implement the algorithm of detecting and extracting
			// exception stack traces from texts.

			return exceptionStackTraces;
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

	/**
	 * Description:
	 * 
	 * @param args
	 *            void
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
